package cn.easybuy.service.impl;

import java.util.List;

import cn.easybuy.dao.ProductDao;
import cn.easybuy.dao.impl.ProductDaoImpl;
import cn.easybuy.entity.Product;
import cn.easybuy.service.ProductService;

public class ProductServiceImpl implements ProductService{
	ProductDao productDao=new ProductDaoImpl();
	@Override
	public List<Product> getProductsByCategoryLevel3Id(int categoryLevel3Id) {
		return productDao.getProductsByCategoryLevel3Id(categoryLevel3Id);
	}
	@Override
	public List<Product> geallProducts(int id) {
		// TODO Auto-generated method stub
		return productDao.geallProducts(id);
	}
	@Override
	public List<Product> getProductCategories(int pageNo, int pageSize) {
		// TODO Auto-generated method stub
		return productDao.getProductCategories(pageNo, pageSize);
	}
	@Override
	public int getTotalCount() {
		// TODO Auto-generated method stub
		return productDao.getTotalCount();
	}

}
